#!/bin/bash  

# 官网安装步骤地址：https://docs.docker.com/compose/install/#install-compose
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
 
#赋权Apply executable permissions to the binary:
chmod +x /usr/local/bin/docker-compose
#测试（查看版本）Test the installation
docker-compose --version